package com.hospital.doctor.service;

import com.hospital.doctor.mapper.ListPresctiptionMapper;
import com.hospital.doctor.pojo.ListPrescription;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author QIUYANG
 * @title: ListPrescriptionServiceImpl
 * @description: TODO
 * @date 2021/5/2614:56
 */
@Service
public class ListPrescriptionServiceImpl implements ListPrescriptionService {

    @Autowired
    private ListPresctiptionMapper listPresctiptionMapper;


    @Override
    public int insert(ListPrescription listPrescription) {
        return listPresctiptionMapper.insert(listPrescription);
    }

    @Override
    public List<ListPrescription> select(int pId) {
        return listPresctiptionMapper.select(pId);
    }
}
